package com.wondersgroup.fjzlpt.gateway.filtes.exception;

/**
 * 自定义过滤器异常
 * Created by lion on 2017/6/20.
 */
public class QuickZuulFilterException extends RuntimeException {

    /**未授权*/
    public static final String TYPE_UNAUTH = "TYPE_UNAUTH";
    /**中心认证失败*/
    public static final String TYPE_CERT_FAIL = "TYPE_CERT_FAIL";
    /**中心认证过期*/
    public static final String TYPE_CERT_TIME_OUT = "TYPE_CERT_TIME_OUT";
    /**跳转登录失败*/
    public static final String TYPE_ERROR_LOGIN = "TYPE_ERROR_LOGIN";

    public String getType() {
        return type;
    }

    private String type;

    public QuickZuulFilterException(String type, String message) {
        super(message);
        this.type = type;
    }
}
